package DD4;

public class ByThread {

public static void main(String[] args) {
	ByT T1 = new ByT();
	T1.setName("T1 ");
	T1.start();
	ByT T2 = new ByT();
	T2.setName("T2 ");
	T2.start();
}

}
class ByT extends Thread{
	@Override
	public void run() {
		for (int i = 0; i < 10; i++) {
			System.out.println(Thread.currentThread().getName() +i);
		}
	}
}